<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:include flush="true" page="common/cts.jsp"></jsp:include>
<html>
	<head>
		<title>CTS物流跟踪系统</title>
		<link rel="stylesheet" href="${pageContext.request.contextPath}/cts/css/style.css" type="text/css"/>
		<script type="text/javascript" src="${pageContext.request.contextPath}/cts/js/jquery.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/cts/js/common.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/cts/js/popdiv.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/cts/js/jquery.bgiframe.js"></script>
		<script type="text/javascript">
			$(function(){
				$('#keyword').pleaseInput('输入订单号码进行追踪',{'font-weight':'bold','color':'#C5C3C4'});
			});
			
			function indexSearchWork(){
				/*var cts_id='<s:property value="#cts_userid"/>';
				
				if(isNaN(cts_id)){
					alert("请先登录!");
					loginx();
					return;
				}
				*/
				var keyword=$("#keyword").val();
				if(keyword.length==0 || keyword=="输入订单号码进行追踪"){
					alert("内容不能为空，请输入正确的订单号！");
					return;
				}
				
				$.ajax({
					url:'${pageContext.request.contextPath}/cts/searchByOrder?keyword='+keyword,
					success:function(data){
						$("#workingDiv").css("background","none");
						$("#workingDiv").html(data);
					}
				});
				
				/*
				//获取员工ID
				var companyList=$("#manEmployee").find("ul");
				if(companyList.length==0){
					alert("抱歉！目前你没有开通公司或者加入其他公司！");
					return;
				}
				
				var employeeId=$("#manEmployee").find("ul:eq(0)").attr("id").split("_")[1];
				var url = "cts/saveSelectEmployee?id="+employeeId;
			    $.post(url , "" , function(data){
					var url = "${pageContext.request.contextPath}/cts/searchWork?keyword="+keyword;
			        window.location.href = url;
			    });
			    */
			}
		</script>
	</head>
	<body>
		<div id="mainTop" style="margin-top:0px;">
		    <jsp:include flush="true" page="top.jsp?place=1"></jsp:include>
		</div>
		<div class="main_div">
			<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:50px;table-layout: fixed;">
				<tr>
					<td width="24%" align="right"><img src="${pageContext.request.contextPath}/cts/images/index_logo.jpg"/></td>
					<td width="76%" style="padding-left: 15px" align="left">
						<div style="height:49px;width:532px;background: url(${pageContext.request.contextPath}/cts/images/index_search.jpg);">
							<div style="float:left;padding-top:11px;padding-left:45px;border:0px solid red;">
								<input id="keyword" style="border:0px solid red; width:400px; height:25px;vertical-align: middle; line-height: 25px" type="text" value="输入订单号码进行追踪"/>
							</div>
							<div style="float:left;border:0px solid red;width:65px;height:38px;margin-left: 10px;cursor: pointer;" onclick="indexSearchWork()">
								&nbsp;
							</div>
						</div>
					</td>
				</tr>
			</table>
		</div>
		<div  id="workingDiv" class="main_div" style="color:#686868;margin-top:50px;padding-top:0;height:494px;background: url(${pageContext.request.contextPath}/cts/images/index_main.jpg);">

		</div>
		<div class="main_div" style="padding-top: 30px">
			<div style="color:#686868;float:left;padding-left:30px;padding-top:10px;">&copy;2012 Copyright CTS.com & Chainco Info.</span><span style="color:#aaa">All rights reserved.</div>
			<div style="float:right;padding-right:0px;border:0px solid red">
				 <a href="javaScript:openPopDiv('popdiv_inner_aboutUs')" class="top_menu">
		        	<img id="index_aboutUs" src="${pageContext.request.contextPath}/cts/images/aboutUs.jpg" style="margin-bottom: -10px" border="0" />关于我们
		        </a><font style="font-family: '宋体', Simsun;">&nbsp;&nbsp;|&nbsp;</font>
		         <a href="javaScript:openPopDiv('popdiv_inner_serverStatement')" class="top_menu">
		        	<img id="index_serverStatement" src="${pageContext.request.contextPath}/cts/images/serverStatement.jpg" style="margin-bottom: -7px" border="0" />&nbsp;服务条款
		        </a><font style="font-family: '宋体', Simsun;">&nbsp;&nbsp;|&nbsp;</font>
		        <a href="javaScript:openPopDiv('popdiv_inner_lawStatement')" class="top_menu">
		        	<img id="index_lawStatement" src="${pageContext.request.contextPath}/cts/images/lawStatement.jpg" style="margin-bottom: -10px" border="0" />&nbsp;法律声明
		        </a><font style="font-family: '宋体', Simsun;">&nbsp;&nbsp;|&nbsp;</font>
		        <a href="javaScript:openPopDiv('popdiv_inner_contackus')" class="top_menu">
		        	<img  id="index_contackus" src="${pageContext.request.contextPath}/cts/images/contackus.jpg" style="margin-bottom: -10px" border="0" />联系我们
		        </a>
			</div>
		</div>
		
		
<!-- 关于我们 -->
<div id="popdiv_inner_aboutUs" class="popdiv_inner" style="width: 550px;">
	<div class="popdiv_inner_outter"></div>
	<div class="popdiv_close"></div>
	<div class="popdiv_handle" id="popdiv_handle" title="鼠标左键按住可拖动">关于CTS</div>
    <div class="popdiv_content" id="popdiv_content">
    	关于我们
    </div>
</div>		
<!-- 服务条款 -->
<div id="popdiv_inner_serverStatement" class="popdiv_inner" style="width: 700px;">
	<div class="popdiv_inner_outter"></div>
	<div class="popdiv_close"></div>
	<div class="popdiv_handle" id="popdiv_handle" title="鼠标左键按住可拖动">服务条款</div>
    <div class="popdiv_content" id="popdiv_content">
    	服务条款
    </div>
</div>		
<!-- 法律声明 -->
<div id="popdiv_inner_lawStatement" class="popdiv_inner" style="width: 700px;">
	<div class="popdiv_inner_outter"></div>
	<div class="popdiv_close"></div>
	<div class="popdiv_handle" id="popdiv_handle" title="鼠标左键按住可拖动">法律声明</div>
    <div class="popdiv_content" id="popdiv_content">
    	法律声明
    </div>
</div>
<!-- 联系我们 -->
<div id="popdiv_inner_contackus" class="popdiv_inner" style="width: 700px;">
	<div class="popdiv_inner_outter"></div>
	<div class="popdiv_close"></div>
	<div class="popdiv_handle" id="popdiv_handle" title="鼠标左键按住可拖动">联系我们</div>
    <div class="popdiv_content" id="popdiv_content">
    	联系我们
    </div>
</div>	
		
		
	</body>
</html>
   
   
   
   
   
   
   
   
   
   